package com.qfjy.homework.chenzhiyuan;

/**
 * @author:陈志远
 * @date:2022/6/29 23:10
 * @VERSION:1.0
 */
public class GoodsDemo {

    public static void main(String[] args) {

        Goods phone = new Goods("手机", "电器", 1999);
        Goods table = new Goods("桌子", "家具", 500);
        Goods clothes = new Goods("短袖", "服装", 199);

        phone.add(table);
        phone.add(clothes);
        System.out.println(phone);
        phone.getGoodsList().forEach(System.out::println);

    }
}
